<?php
/*
 * Created on Feb 24, 2008
 * @author max
 */
include_once(dirname(__FILE__).'/../database/dbShifts.php');
class testdbShifts extends UnitTestCase {
  function testdbShiftModule() {
//  	$this->assertTrue(setup_dbShifts());
	$s1=new Shift("02-25-08-night",3, null, "", "");
	$this->assertTrue(insert_dbShifts($s1));
	$s2=new Shift("02-25-08-3-6",3, null, "", "");
	$this->assertTrue(insert_dbShifts($s2));
	$this->assertTrue(select_dbShifts("02-25-08-3-6")!==null);
//	print_r(select_dbShifts("02-25-08-3-6"));
	$this->assertTrue(delete_dbShifts($s1));
	$s2=new Shift("02-25-08-3-6",2, null, "", "");
	$this->assertTrue(update_dbShifts($s2));
	$this->assertTrue(delete_dbShifts($s2));
	echo ("testdbShifts complete");
  }
}
?>
